package com.sunk.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.sunk.springcloud.entities.CommonResult;
import com.sunk.springcloud.entities.Payment;

/**
 * @Auther: Sunk
 * @Date: 2020/3/17 16:28
 * @Description:
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException ex){
        return new CommonResult(444,"按客户自定义，global",new Payment(2020l,"serial003"));
    }

    public static CommonResult handlerException2(BlockException ex){
        return new CommonResult(444,"按客户自定义2，global",new Payment(2020l,"serial003"));
    }

}
